import React, { FC, useEffect } from 'react'
import { Button, Typography } from 'antd'
import styles from './Home.module.scss'
import { useNavigate } from 'react-router-dom'
import { MANAGER_INDEX_PATHNAME } from '../router'
const Home: FC = () => {
    const nav = useNavigate()
    const { Title, Link } = Typography
    return <div className={styles.container}>
        <div className={styles.info}>
            <Title>问卷调查 | 在线投票</Title>
            <Link>已累计创建问卷 100 份，发布问卷 90 份，收到答卷 980 份</Link>
            <div>
                <Button type='primary' onClick={() => nav(MANAGER_INDEX_PATHNAME)}>开始使用</Button>
            </div>
        </div>
    </div>
}

export default Home